import request from '@/utils/request'

// 查询用户流水记录列表
export function listAgentUserFlowing(query) {
  return request({
    url: '/system/agentUserFlowing/list',
    method: 'get',
    params: query
  })
}

// 查询用户流水记录详细
export function getAgentUserFlowing(id) {
  return request({
    url: '/system/agentUserFlowing/' + id,
    method: 'get'
  })
}

// 新增用户流水记录
export function addAgentUserFlowing(data) {
  return request({
    url: '/system/agentUserFlowing',
    method: 'post',
    data: data
  })
}

// 修改用户流水记录
export function updateAgentUserFlowing(data) {
  return request({
    url: '/system/agentUserFlowing',
    method: 'put',
    data: data
  })
}

// 删除用户流水记录
export function delAgentUserFlowing(id) {
  return request({
    url: '/system/agentUserFlowing/' + id,
    method: 'delete'
  })
}

// 导出用户流水记录
export function exportAgentUserFlowing(query) {
  return request({
    url: '/system/agentUserFlowing/export',
    method: 'get',
    params: query
  })
}